package com.hxexp.weixin.test.runner;

import java.io.FileNotFoundException;

import org.junit.runners.BlockJUnit4ClassRunner;
import org.junit.runners.model.InitializationError;

import com.hxexp.weixin.common.logback.LogBackConfigLoader;

import ch.qos.logback.core.joran.spi.JoranException;

public class JUnit4WithLogClassRunner extends BlockJUnit4ClassRunner {
    static {
        try {
            LogBackConfigLoader.load("classpath:conf/logback4test.xml");
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (JoranException e) {
            e.printStackTrace();
        }
    }

    public JUnit4WithLogClassRunner(Class<?> clazz) throws InitializationError {
        super(clazz);
    }

}
